package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.Studif;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yp
 * @since 2021-10-26
 */
@Repository
public interface StudifMapper extends BaseMapper<Studif> {
    Studif selectByLoginIDWithYear(Long id, int year);

    Studif selectByLoginId(Long id);

    void updateByStuNumber(String stuNumber, Studif studif);

    void deleteByStuNumber(String stuNumber,Integer stuYear);

    void insertWithStudif(String stuNumber, Integer stuYear);

    Studif selectInsert(String stuNumber, Integer stuYear);

    Studif selectByShenhe(Studif studif);

    void insertWithTea(String stuNumber, Integer stuYear, String stuTeacherth, String stuTeachers);

    void insertWithSchool(String stuNumber, Integer stuYear, String stuSchoolth, String stuSchools,String stuDif);

    List<Studif> selectBySchool(@Param("studif") Studif studif);
}
